package main

import (
	"fmt"
	"strings"
	"time"
)

// 只能记住部分题目了
func a(m map[int]int, s []int) {
	m[2] = 3
	m[1] = 888
	s[1] = 3
	delete(m, 1)
}

func main() {
	mp := make(map[int]int)
	b := make([]int, 2, 6)
	mp[1] = 2
	a(mp, b)
	fmt.Println(mp, b)

	s := []string{"one", "two", "three"}
	for _, c := range s {
		go func() {
			time.Sleep(1 * time.Second)
			fmt.Printf("%s", c)
		}()
	}
	time.Sleep(3 * time.Second)
	fmt.Println()
	as := "qwe 21sad dwq"
	slist := strings.Split(as, " ")
	fmt.Println(strings.Join(slist, "%20"))
}
